package com.glenet.salary.action;

import java.util.List;

import com.glenet.salary.dao.HrEmployeeExpandDao;
import com.glenet.salary.entities.HrEmployeeExpand;

/**
 * @author MeiWenhui
 * 
 */
@SuppressWarnings("serial")
public class EmployeeExpandAction extends BaseAction {

	private HrEmployeeExpand empExpand;
	private Long id;
	// dao
	private HrEmployeeExpandDao expandDao = new HrEmployeeExpandDao();
	
	

	public String add() {
		return SUCCESS;
	}

	public String execute() throws Exception {
		List<HrEmployeeExpand> empExps = expandDao.list(offset, limit);
		req.setAttribute("empExps", empExps);
		return SUCCESS;
	}
	public String save() {
		return SUCCESS;
	}
	
	public String get(){
		return SUCCESS;
	}
	
	public String edit(){
		empExpand = expandDao.get(id);
		return SUCCESS;
	}
	
	public String update(){
		boolean flag = expandDao.update(empExpand);
		System.out.println(flag);
		return SUCCESS;
	}
	
	public String delete(){
		return SUCCESS;
	}


	public HrEmployeeExpand getEmpExpand() {
		return empExpand;
	}

	public void setEmpExpand(HrEmployeeExpand empExpand) {
		this.empExpand = empExpand;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
}
